package com.zmj.sy.mom.srv.aps.bean.entity.order;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;


@Comment("倒排拆包 工单明细")
@Getter
@Setter
@TableName("tb_reverse_detail")
public class ReverseDetail extends BaseEntity {

    @Comment("订单ID")
    private Integer orderId;

    @Comment("倒排拆包ID")
    private Integer reverseOrderId;

    @Comment("BOM ID")
    private Integer bomId;

    @Comment("BOM PID")
    private Integer bomPid;

    @Comment("层级")
    private Integer level;

    @Comment("工序表ID")
    private Integer phaseId;

    @Comment("工序表ID")
    private Integer phaseSeq;

    @Comment("组工位编号")
    private String groupCode;

    @Comment("组ID")
    private Integer stationGroupId;

    @Comment("组ID")
    private Integer groupId;

    @Comment("计划开始秒")
    private Integer planStartSecond;

    @Comment("加工时间秒")
    private Integer processSecond;

    @Comment("计划结束秒")
    private Integer planEndSecond;

    @Comment("工位数量")
    private Integer workCount;

    @Comment("作业能力：默认1倍")
    private BigDecimal workAbility;

    @Comment("单件工时 秒")
    private Integer workTime;

    @Comment("总数量")
    private BigDecimal totalCount;

    @Comment("此包数量")
    private Integer splitNum;

    @Comment("倒排开始时间")
    private LocalDateTime reverseStartTime;

    @Comment("倒排开始时间")
    private LocalDateTime reverseEndTime;

    @Comment("哪一天，缓存字段没啥用")
    private LocalDate reverseDay;

    @Comment("某天的工作秒数")
    private Integer reverseDaySecond;

    @Comment("是否为后期添加 null和1否 2是")
    private Integer appendFlag;
}
